package com.atguigu.common.utils;
/**
 * 常量
 */
public class Constant {
    public static final int SUPER_ADMIN = 1;    //超级管理员ID
    public static final String PAGE = "page";    //当前页码
    public static final String LIMIT = "limit";    //每页显示记录数
    public static final String ORDER_FIELD = "sidx";    //排序字段
    public static final String ORDER = "order";    // 排序方式
    public static final String ASC = "asc";    //升序

    /**
     * 菜单类型
     */
    public enum MenuType {
        //    目录            菜单           按钮
        CATALOG(0), MENU(1), BUTTON(2);

        private int value;

        MenuType(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }}

    /**
     * 定时任务状态
     */
    public enum ScheduleStatus {
        //   正常             暂停
        NORMAL(0), PAUSE(1);

        private int value;

        ScheduleStatus(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }}}
